package com.happy.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.happy.common.annotation.Excel;
import com.happy.common.core.domain.BaseEntity;

/**
 * 用户搜索词记录对象 user_search_terms
 * 
 * @author ruoyi
 * @date 2024-12-28
 */
public class UserSearchTerms extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 搜索ID */
    private Long searchId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 搜索词 */
    @Excel(name = "搜索词")
    private String searchTerm;

    /** 搜索时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "搜索时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date searchTime;

    /** 用户IP */
    @Excel(name = "用户IP")
    private String ipAddress;

    /** 用户代理 */
    @Excel(name = "用户代理")
    private String userAgent;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 地理位置 */
    @Excel(name = "地理位置")
    private String location;

    /** 会话ID */
    private String sessionId;

    public void setSearchId(Long searchId) 
    {
        this.searchId = searchId;
    }

    public Long getSearchId() 
    {
        return searchId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSearchTerm(String searchTerm) 
    {
        this.searchTerm = searchTerm;
    }

    public String getSearchTerm() 
    {
        return searchTerm;
    }
    public void setSearchTime(Date searchTime) 
    {
        this.searchTime = searchTime;
    }

    public Date getSearchTime() 
    {
        return searchTime;
    }
    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }
    public void setUserAgent(String userAgent) 
    {
        this.userAgent = userAgent;
    }

    public String getUserAgent() 
    {
        return userAgent;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setSessionId(String sessionId) 
    {
        this.sessionId = sessionId;
    }

    public String getSessionId() 
    {
        return sessionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("searchId", getSearchId())
            .append("userId", getUserId())
            .append("searchTerm", getSearchTerm())
            .append("searchTime", getSearchTime())
            .append("ipAddress", getIpAddress())
            .append("userAgent", getUserAgent())
            .append("deviceType", getDeviceType())
            .append("location", getLocation())
            .append("sessionId", getSessionId())
            .toString();
    }
}
